package com.example.haiyang.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author haiyang
 * @since 2019-11-23
 */
public class Menus extends Model<Menus> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private byte[] id;
    /**
     * menu_name
     */
    @TableField("menu_name")
    private String menuName;
    /**
     * menu_code
     */
    @TableField("menu_code")
    private String menuCode;
    /**
     * pid
     */
    private byte[] pid;


    public byte[] getId() {
        return id;
    }

    public void setId(byte[] id) {
        this.id = id;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public byte[] getPid() {
        return pid;
    }

    public void setPid(byte[] pid) {
        this.pid = pid;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Menus{" +
        "id=" + id +
        ", menuName=" + menuName +
        ", menuCode=" + menuCode +
        ", pid=" + pid +
        "}";
    }
}
